var o = require("../../utils/tool");

Component({
    properties: {
        couponList: {
            type: Array,
            value: []
        },
        noCanUseList: {
            type: Array,
            value: []
        },
        couponHistoryId: {
            type: String,
            value: ""
        }
    },
    data: {
        dialogFlag: !1
    },
    methods: {
        showCouponDialog: function() {
            this.setData({
                dialogFlag: !0
            });
        },
        hideCouponDialog: function() {
            this.setData({
                dialogFlag: !1
            });
        },
        getCouponHistoryId: function(t) {
            t.detail.id || this.properties.couponHistoryId ? this.triggerEvent("sendCouponHistoryId", t.detail, {}) : (0, 
            o.toastToPage)("当前没有选中的优惠券");
        }
    }
});